package com.isoftstone.bank.dao;

import com.isoftstone.bank.entity.BOrg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BOrgMapper {
    int deleteByPrimaryKey(Long orgId);

    int insert(BOrg record);

    int insertSelective(BOrg record);

    BOrg selectByPrimaryKey(Long orgId);

    int updateByPrimaryKeySelective(BOrg record);

    int updateByPrimaryKey(BOrg record);

    List<BOrg> selectBySupbak(Long supbak);

    Long selectNextOrgId();

    List<BOrg> selectAll();

    List<BOrg> exportExcel();

    String orgNameIsExsit(@Param(value = "orgName") String orgName, @Param(value = "orgid") Long orgid);
}